package cn.liaoc.journalismapi1.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.util.Date;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "journalism")
public class Journalism {
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @TableField(value = "title")
    private String title;

    @TableField(value = "classify")
    private Integer classify;

    @TableField(value = "author")
    private String author;

    @TableField(value = "`state`")
    private Integer state;

    @TableField(value = "release_time")
    private String releaseTime;

    @TableField(exist = false)
    private JournalismClassify journalismClassify;
}